
from pydantic import BaseModel, ValidationError

# Define a Pydantic model
class BroswerInfo(BaseModel):
    keyword: str
    results: list
    age: int | None = None  # Optional field

def singleton(cls):
    instances = {}
    def get_instance(*args, **kwargs):
        if cls not in instances:
            instances[cls] = cls(*args, **kwargs)
        return instances[cls]
    return get_instance

# @singleton
class Broswer:
    results = []
    keyword = ''
